<?php
namespace catchAdmin\basics\model\search;
use think\facade\Db;

trait OfficialSearch
{
    //公众号名称
    public function searchOfficialNameAttr($query, $value, $data){
        return $query->whereLike('official_name', $value);
    }
}